package clazz.abs.abs_factory.computer;

public class Demo {
    public static void main(String[] args) {
        Computer computer = new Computer() {
            @Override
            public void makeComputer() {
            }
        };
        USB usbDisk=new USBDisk();

        String da= computer.read("HDMI");
        System.out.println("读取了data"+da);

        computer.insertUSBDevice(usbDisk);
        String data= computer.read("/");
        System.out.println("读取了data" +data);
        computer.write("hello");
        computer.read("/");
    }
}
